import request from '@/utils/request'

// 查询定制服务列表
export function listCustomized(query) {
  return request({
    url: '/system/customized/list',
    method: 'get',
    params: query
  })
}

// 查询定制服务详细
export function getCustomized(id) {
  return request({
    url: '/system/customized/' + id,
    method: 'get'
  })
}

// 新增定制服务
export function addCustomized(data) {
  return request({
    url: '/system/customized',
    method: 'post',
    data: data
  })
}

// 修改定制服务
export function updateCustomized(data) {
  return request({
    url: '/system/customized',
    method: 'put',
    data: data
  })
}

// 删除定制服务
export function delCustomized(id) {
  return request({
    url: '/system/customized/' + id,
    method: 'delete'
  })
}
